package com.jk.dmconsumer.djhService;

import com.jk.dmcommon.djhEntity.DjhDistrEntity;
import com.jk.dmcommon.djhEntity.DjhWatchPersonEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient("dmpayprovider")
public interface DjhPayOrderService {
    @RequestMapping(value = "djhOrderProvider/addPerson",method = RequestMethod.POST)
    void addPersonForm(@RequestBody  DjhWatchPersonEntity djhWatchPersonEntity);
    @RequestMapping("djhOrderProvider/selectPeisong")
    List<DjhDistrEntity> selectPeisong(@RequestParam Integer goodsId);
    //观影人回显
    @RequestMapping("djhOrderProvider/selectAllWatchPerson")
    List<DjhWatchPersonEntity> selectAllWatchPerson();
}
